﻿using System;
using System.Web.UI;
using Mobile.Web.DataAccess;
using Mobile.WebControls.Field;

namespace Mobile.Web.Form
{
    public partial class SimpleForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Control control = ControlHelper.GetControlById(mbPage1, "rbCars");
            if (control is RadioButtonList)
            {
                RadioButtonList cb = control as RadioButtonList;
                cb.DataSource = CarDataAccess.GetCars();
                cb.DataBind();
            }
        }
    }
}